package com.whfc.ms.api.quality.service.impl;

import com.whfc.ms.api.quality.service.MsQualityAcceptanceService;
import com.whfc.quality.dto.QualityAcceptanceDTO;
import com.whfc.quality.param.QualityAcceptanceAddParam;
import com.whfc.quality.param.QualityAcceptanceEditParam;
import com.whfc.quality.service.QualityAcceptanceService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author: hw
 * @date: 2021-10-30 9:34
 * @description: 验收情况
 */
@Service
public class MsQualityAcceptanceServiceImpl implements MsQualityAcceptanceService {

    @DubboReference(interfaceClass = QualityAcceptanceService.class, version = "1.0.0")
    private QualityAcceptanceService qualityAcceptanceService;

    @Override
    public void add(QualityAcceptanceAddParam param) {
        qualityAcceptanceService.add(param);
    }

    @Override
    public void edit(QualityAcceptanceEditParam param) {
        qualityAcceptanceService.edit(param);
    }

    @Override
    public QualityAcceptanceDTO details(Integer deptId, Date time) {
        return qualityAcceptanceService.details(deptId, time);
    }
}
